home *** CD-ROM | disk | FTP | other *** search
/ US Department of Defense…ndamentals 1.0 2004 April / US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso / sco / interface / sco_Main.swf / scripts / DefineSprite_98 / frame_1 / DoAction.as
Encoding:
Text File  |  2004-03-29  |  592 bĀ   |  30 lines

  1. temp_name = this._name;
  2. temp_name2 = String(temp_name);
  3. if(temp_name2.length == 3)
  4. {
  5.    tempshort = temp_name2.slice(2,3);
  6.    temp_name3 = "0" + tempshort;
  7. }
  8. else
  9. {
  10.    temp_name3 = temp_name2.slice(temp_name.length - 2,temp_name.length + 2);
  11. }
  12. button_text = temp_name3;
  13. if(_root.txtcurrent == button_text)
  14. {
  15.    gotoAndStop("current");
  16. }
  17. if(_root.txtcurrent == 1)
  18. {
  19.    _root.mc1.gotoAndStop("current");
  20. }
  21. else
  22. {
  23.    _root.mc1.gotoAndStop("active");
  24. }
  25. if(Number(button_text) > _root.furthest_point && _root.sco_status != "c")
  26. {
  27.    gotoAndStop("inactive");
  28. }
  29. stop();
  30.